/**

 * @author admin

 * 2014年7月16日

 */

package com.tmall.testgen.plugin.wizards.runinspring.listener;

import java.util.Map;

import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Button;

import com.tmall.testgen.plugin.wizards.runinspring.ComCreator;

public class StopSpringBtnSelectListener implements SelectionListener {

	private Map<String, Button> btnMap;

	public StopSpringBtnSelectListener(Map<String, Button> btnMap) {
		this.btnMap = btnMap;
	}

	@Override
	public void widgetSelected(SelectionEvent e) {
		// 启动成功 设置按钮状态
		btnMap.get(ComCreator.START_CONFIG_ID).setEnabled(true);
		//btnMap.get(ComCreator.STOP_CONFIG_ID).setEnabled(false);
		btnMap.get(ComCreator.UPDATE_CONFIG_ID).setEnabled(true);
	}

	@Override
	public void widgetDefaultSelected(SelectionEvent e) {

	}

}
